<template>
    <div class="container">
        <div class="content">
            <div>
                <h1 class="title">{{ props.title }}</h1>
                <p>{{ props.body }}</p>
                <div style="
                font-size: 1vw;
                margin-top: 2vw;
                margin-left: 3vw;">
                    <el-popover
                    placement="bottom"
                    >
                    <template #reference>
                        <el-button style="margin-right: 16px">查看小程序</el-button>
                    </template>
                    <template #default>
                        <img src="https://img2023.gcsis.cn/2023/4/792c55535d6144fe874fc309b07d3ac9.jpg" style="width: 120px;height: 100px;">
                    </template>
                    </el-popover>
                </div>
            </div>
            <div>
                <img :src="props.imgsrc">
            </div>
        </div>
    </div>
</template>

<script lang="ts" setup name="">
    const props = defineProps({
        title:String,
        imgsrc:String,
        body:String,
        to:String
    })

</script>

<style scoped lang="scss">
     .container{
        width: 100%;
        height: 26vw;
        display: flex;
        justify-content: center;
        .content{
            position: relative;
            display: flex;
            justify-content: space-between;
            width: 100%;
            background-color: black;
            height: 26vw;
            border-radius: 2vw;
            .title{
                padding-top: 3vw;
                padding-left: 3vw;
                padding-bottom: 2vw;
                color: #fff;
            }
            p{
                color: white;
                font-size: 1vw;
                padding-left: 3vw;
            }
            button{
                
            }
            img{
                height: 26vw;
                width: 100%;
                border-radius: 2vw;
            }
        }
    }
</style>
